
from django.urls import path
from rest_framework import routers

from users.views import Register, Login, UserView

urlpatterns = [
    path('register/', Register.as_view()),
    path('login/', Login.as_view()),
    # path('admin/', admin.site.urls),
]

router = routers.DefaultRouter()
# 视图集路由
router.register('users', UserView)

urlpatterns += router.urls

